package com.wanda.service.impl;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.wanda.dao.UnitDAO;
import com.wanda.model.UnitModel;
import com.wanda.model.UnitPBModel;
import com.wanda.service.UnitService;
@Service
public class UnitServiceImpl implements UnitService {

	@Autowired
	private UnitDAO unitDAO;
	
	public void insertUnit(UnitModel model) {
		// TODO Auto-generated method stub
		unitDAO.insertUnit(model);
		
	}
	public int updateUnit(UnitModel model) {
		// TODO Auto-generated method stub
		return unitDAO.updateUnit(model);
	}

	public int deleteUnit(UnitModel model) {
		return unitDAO.deleteUnit(model);
	}

	public UnitModel selectById(String id) {
		// TODO Auto-generated method stub
		return unitDAO.selectById(id);
	}

	public List<UnitPBModel> selectAll() {
		// TODO Auto-generated method stub
		return unitDAO.selectAll();
	}
	public List<UnitModel> selectBySql(String SearchSql) {
		// TODO Auto-generated method stub
		return unitDAO.selectBySql(SearchSql);
	}
	public List<UnitPBModel> selectAlll(String tel) {
		// TODO Auto-generated method stub
		return unitDAO.selectAlll(tel);
	}

}
